#include <stdio.h>
#include <string.h>
struct Imformation
{
    char id[50];
    char name[50];
    char grade[50];
};
int main()
{
    struct Imformation student;
    int x=1;
    //int a1, a2, a3;
    FILE *fp;
    do
    {
        fp = fopen("D:\\srudents'information.bin", "a+");
        printf("请按学号、姓名、成绩的顺序输入下一位学生的信息\n");
        scanf("%s", student.id);
        fputs(student.id, fp);
        fputc(' ',fp);
        scanf("%s", student.name);
        fputs(student.name, fp);
        fputc(' ',fp);
        scanf("%s", student.grade);
        fputs(student.grade, fp);
        fputc('\n', fp);
        fclose(fp);
    }
    while (x=1);
    return 0;
}